package com.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.Bean.wdsalechanceModel;
import com.Dao.wdsalechanceModelMapper;
import com.Service.wdSaleManagerService;
@Service
public class wdSaleManagerServiceImpl implements wdSaleManagerService{
	@Autowired
	private wdsalechanceModelMapper sdao;

	@Override//查询所有值
	public List<wdsalechanceModel> getList(wdsalechanceModel sbean) {
		return sdao.selectall(sbean);
	}

	@Override
	public int addsalemanager(wdsalechanceModel sbean) {
		return sdao.insertSelective(sbean);
	}

	@Override
	public wdsalechanceModel selectsale(String saleChanceId) {
		// TODO Auto-generated method stub
		return sdao.selectByPrimaryKey(saleChanceId);
	}

	@Override
	public int updatesale(wdsalechanceModel scbean) {
		
		return sdao.updateByPrimaryKeySelective(scbean);
	}

	
	
	
}
